// Created by zengyuhao on 25-8-26.
// Copyright (c) 2025 Engineai All rights reserved.
//
#include "utilities_function.h"

bool IsClose(const std::vector<double> &a, const std::vector<double> &b, const double &tolerance)
{
    bool close = true;
    for (size_t i = 0; i < a.size(); ++i) {
        if (fabs(a[i] - b[i]) >= tolerance) {
            close = false;
            break;
        }
    }
    return close;
}